package com.suncaper.han_yi_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.suncaper.han_yi_system.pojo.vo.RegistrationVo;
import org.apache.ibatis.annotations.Mapper;
import com.suncaper.han_yi_system.pojo.entity.Registration;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RegistrationMapper extends BaseMapper<Registration> {

    int updateByStudent(@Param("reg") Registration registration);

    List<RegistrationVo> findByUserId(@Param("userId") Long userId);

}